////////////////////////////////////////////////////////////////////////////////
//                                                                            //
//                           BailterRay                                       //
//                    Pip Robbins & Zhao Zhang                                //
//                                                                            //
////////////////////////////////////////////////////////////////////////////////
class BailterRayWeaponPickupFactory extends UTWeaponPickupFactory;

var rotator MeshRotation;

function Tick(float DeltaTime)
{
   MeshRotation.Yaw += YawRotationRate * DeltaTime;
   PickupMesh.SetRotation(MeshRotation);
}

function SpawnCopyFor( Pawn Recipient )
{
	local UTGame Game;

	super.SpawnCopyFor(Recipient);

	Game = UTGame(WorldInfo.Game);
	Game.DefaultInventory[0] = class'BailterRayWeap_RayGun';
	UTPawn(Recipient).PlayEmote('PickupTaunt', -1);
    GotoState('Disabled');
}

defaultproperties
{
   bWeaponStay=True
   Begin Object name=GlowEffect ObjName=GlowEffect
      Template=ParticleSystem'BailterRay_RayGun.Effects.Spawn_Effect'
      SecondsBeforeInactive=1.000000
      Translation=(X=0.000000,Y=0.000000,Z=000000)
      scale=2.2
      Name="GlowEffect"
   End Object
   BaseGlow=GlowEffect

   WeaponPickupScaling=2.4

   bRotatingPickup=False

   Begin Object class=SpriteComponent Name=Sprite ObjName=Sprite Archetype=SpriteComponent'Engine.Default__SpriteComponent'
      Sprite=Texture2D'EngineResources.S_NavP'
      HiddenGame=True
      AlwaysLoadOnClient=False
      AlwaysLoadOnServer=False
      Name="Sprite"
      ObjectArchetype=SpriteComponent'Engine.Default__SpriteComponent'
   End Object
   GoodSprite=Sprite
   Begin Object Class=SpriteComponent Name=Sprite2 ObjName=Sprite2 Archetype=SpriteComponent'Engine.Default__SpriteComponent'
      Sprite=Texture2D'EditorResources.Bad'
      HiddenGame=True
      HiddenEditor=True
      AlwaysLoadOnClient=False
      AlwaysLoadOnServer=False
      scale=0.250000
      Name="Sprite2"
      ObjectArchetype=SpriteComponent'Engine.Default__SpriteComponent'
   End Object
   BadSprite=Sprite2
   bDoVisibilityFadeIn=False
   Components(3)=None
   Components(4)=GlowEffect
   Components.add(Sprite)
   Components.add(Sprite2)

   name="Default__BailterRayWeaponPickupFactory"
   ObjectArchetype=UTPickupFactory'UTGame.Default__UTWeaponPickupFactory'
}